package com.xy.biz.mc.manager;

import com.xy.biz.mc.domain.bo.UserConnectionBO;
import com.xy.biz.mc.domain.query.UserConnectionQuery;

import java.util.Collection;
import java.util.List;
import java.util.Map;

public interface UserConnectionManager {

    void save(UserConnectionBO userConnectionBO);

    void update(UserConnectionBO userConnectionBO);

    Long getServerId(Long userId);

    Map<Long, Long> listServerId(Collection<Long> userIdCollection);

    Map<Long, Long> listServerIdByUserGroupId(Long userGroupId);

    List<UserConnectionBO> listUserConnection(UserConnectionQuery query);

    /**
     * 条件统计个数
     *
     * @param query 查找条件
     * @return
     */
    int countUserConnection(UserConnectionQuery query);

}
